<?php

declare(strict_types=1);

namespace App\Service\Business;

use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\RequestInterface;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use function Hyperf\Coroutine\co;

/**
 * 业务-基类
 */
class BaseBusiness
{
        #[Inject]
        protected RequestInterface $request;

        /**
         * 创建操作日志
         * @param array $operateBefore
         * @param array $operateAfter
         * @return void
         * @throws ContainerExceptionInterface
         * @throws NotFoundExceptionInterface
         */
        public function createOperateLog(array $operateBefore = [], array $operateAfter = []): void
        {
               (new \App\Service\Business\OperateLogBusiness())->create($operateBefore, $operateAfter);
        }
}